package top.jolyoulu.codegenweb.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author: JolyouLu
 * @Date: 2023/3/25 16:00
 * @Description
 */
@Component
@ConfigurationProperties(prefix = "security")
@PropertySource(value = "classpath:codegen-web.yml")
public class SecurityConfig {

    private String pwdSecretKey;

    public String getPwdSecretKey() {
        return pwdSecretKey;
    }

    @Value("${pwd-secret-key}")
    public void setPwdSecretKey(String pwdSecretKey) {
        this.pwdSecretKey = pwdSecretKey;
    }
}
